Safe Output Feedback Motion Planning From Images Via Learned Perception Modules And Contraction Thry